﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace BanXeTang
{
    public class MenuItemManager : DialogManager
    {
        public override void InitPrototypes(ContentManager contentManager)
        {
            _nprototype = 11;
            _prototype = new Dialog[_nprototype];

            _prototype[0] = new MenuItem();
            _prototype[0].Init(contentManager, "NewGame");
            ((MenuItem)_prototype[0]).xMax = 30.0f;
            ((MenuItem)_prototype[0]).Index = 0;

            _prototype[1] = new MenuItem();
            _prototype[1].Init(contentManager, "HighScore");
            ((MenuItem)_prototype[1]).xMax = ((MenuItem)_prototype[0]).xMax + 12.0f;
            ((MenuItem)_prototype[1]).Index = 1;

            _prototype[2] = new MenuItem();
            _prototype[2].Init(contentManager, "Options");
            ((MenuItem)_prototype[2]).xMax = ((MenuItem)_prototype[1]).xMax + 12.0f;
            ((MenuItem)_prototype[2]).Index = 2;


            _prototype[3] = new MenuItem();
            _prototype[3].Init(contentManager, "Exit");
            ((MenuItem)_prototype[3]).xMax = ((MenuItem)_prototype[2]).xMax + 12.0f;
            ((MenuItem)_prototype[3]).Index = 3;

            _prototype[4] = new MenuItem();
            _prototype[4].Init(contentManager, "Resume");
            ((MenuItem)_prototype[4]).xMax = ((MenuItem)_prototype[0]).xMax;
            ((MenuItem)_prototype[4]).Index = 0;

            _prototype[5] = new MenuItem();
            _prototype[5].Init(contentManager, "NewGame");
            ((MenuItem)_prototype[5]).xMax = ((MenuItem)_prototype[1]).xMax;
            ((MenuItem)_prototype[5]).Index = 1;

         
            _prototype[6] = new MenuItem();
            _prototype[6].Init(contentManager, "HighScore");
            ((MenuItem)_prototype[6]).xMax = ((MenuItem)_prototype[2]).xMax;
            ((MenuItem)_prototype[6]).Index = 2;

            _prototype[7] = new MenuItem();
            _prototype[7].Init(contentManager, "Options");
            ((MenuItem)_prototype[7]).xMax = ((MenuItem)_prototype[3]).xMax;
            ((MenuItem)_prototype[7]).Index = 3;

            _prototype[8] = new MenuItem();
            _prototype[8].Init(contentManager, "Exit");
            ((MenuItem)_prototype[8]).xMax = ((MenuItem)_prototype[3]).xMax + 12;
            ((MenuItem)_prototype[8]).Index = 4;

        }
       
    }
}
